Original article connection: www. dudo. orgarticle. asp? One standard in the id253XHTML specification is & ldquo; each XHTML tag has an ending Mark & rdquo ;. For elements in HTML that do not contain end tags, add & ldquo; & rdquo; before the end to
In-depth analysis of JavaWeb Item23 -- Introduction to jsp custom tag DevelopmentI. Role of custom tags
Custom tags are mainly used to remove java code from Jsp pages.Ii. Development and Use of custom tags
2.1 custom tag development steps
1.
I. Basic concepts:
1. Tag ):
A tag is an XML element. A tag can simplify and maintain a JSP webpage, and supports multiple language versions for the same JSP file. Because tags are XML elements, their names and attributes are case sensitive.
2. Tag
1. Simple tagBecause the traditional tag uses three tag interfaces to complete different functions, it is too cumbersome and is not conducive to the promotion of tag technology. In order to reduce the difficulty of learning tag technology, SUN, in
1. Overview of custom JSP labelsA custom JSP tag is a type of JSP tag defined by the programmer. This tag encapsulates the information display logic in a separate Java class and describes its usage through an XML file. When you need to use similar
Paging-navigation of the ending page number
Paging-navigation of the ending page number
/**
* Generate Comment navigation by page at the end
* @ Author Li Jun
*
*/
Class cmtTail {
Private $
Servlet custom tag development steps, servlet custom tags1. Why do I need to use custom tags?(1) integrated with JSP pages(2) It also has certain business logic functions, such as loops and CIDR blocks...
(3) Replace
2. Step 3 of custom tag
TagActionDispatcher is a standard implementation of the ActionDispatcher class. it supports accessing basic template tags. The TagActionDispatcher class supports the same ActionObjects set and ViewResourcesConfig attributes as the default
If there is no complex processing such as highlighting, you only need to get the word and position selected in the text, thenUse Window.getselection () to get the selected text content and position in DivHow to get the selected text in textareacan
TagActionDispatcher is a standard implementation of the ActionDispatcher class. It supports accessing basic template tags. The TagActionDispatcher class supports the same ActionObjects set and ViewResourcesConfig attributes as the default
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.